package com.zking.ssm.service.impl;

import com.zking.ssm.mapper.TeacherMapper;
import com.zking.ssm.model.Teacher;
import com.zking.ssm.service.ITeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TeacherServiceImpl implements ITeacherService {
    @Autowired
    private TeacherMapper teacherMapper;


    @Override
    public int insert(Teacher record) {
        return teacherMapper.insert(record);
    }

    @Override
    public List<Teacher> queryTeacherAll(Teacher teacher) {

        return teacherMapper.queryTeacherAll(teacher);
    }
}
